<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>{{$title}}</title>
    <link rel="stylesheet" href="{{asset('/css_system/common.css')}}"/>
    <link rel="stylesheet" href="{{asset('/css_system/style.css')}}"/>
    <script type="text/javascript" src="{{asset('/js_system/jquery.min.js')}}"></script>
    <script type="text/javascript" src="{{asset('/js_system/clock.js')}}"></script>

    <!-- scrollbar -->
    <link rel="stylesheet" href="{{asset('/js_system/scrollbar/jquery.mCustomScrollbar.css')}}"/>
    <script type="text/javascript" src="{{asset('/js_system/scrollbar/jquery.mCustomScrollbar.concat.min.js')}}"></script>
    <!-- 对话框 -->
    <link rel="stylesheet" href="{{asset('/js_system/easydialog/easydialog.css')}}"/>
    <script type="text/javascript" src="{{asset('/js_system/easydialog/easydialog.js')}}"></script>
    <script type="text/javascript" src="{{asset('/js_system/cueeasy.js')}}"></script>

    <script type="text/javascript">
        $(function () {

            $("#sideMenu").mCustomScrollbar({
                theme: "minimal-dark",
                scrollbarPosition: "inside",
                scrollInertia: 400
            });

            var speed = 300;
            $("#sideMenu h3").click(function () {
                if ($(this).hasClass("on") == false) {
                    $(this).addClass("on");
                    $(this).next().slideDown(speed);
                } else {
                    $(this).removeClass("on");
                    $(this).next().slideUp(speed);
                }
            });

            $("#sideMenu li").click(function () {
                $("#sideMenu li").removeClass("on");
                $(this).addClass("on");
            });
        });
    </script>
</head>
<body>
<div class="top">
    <div id="top_t">
        <div id="logo" class="fl"></div>
        <div id="photo_info" class="fr">
            <div id="base_info" class="fr">
                <div class="help_info">
                    欢迎您，<strong>{{$manage->UserName}} </strong> <a href="{{asset('pwdEdit.aspx')}}" target="main" id="password">修改密码</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a
                            href="javascript:;" id="logout"
                            onclick="DoDialog('确认要退出本系统吗？','/admin_system/logout')">退出</a>
                </div>
                <div class="info_center">
                    <strong>北京时间：</strong><?php echo $time = date('Y-m-d') ?> <span id="Clock0"></span>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="side">
    <div class="sideMenu" id="sideMenu">

        @foreach($menus as $menu)
            <h3>{{$menu->menu_name}}</h3>
            <ul>
                @foreach($menu->subTitle as $subMenu)
                <li><a href="{{asset($subMenu->link_url)}}" target="main">{{$subMenu->menu_name}}</a></li>
                @endforeach
            </ul>
        @endforeach
      {{--
        <h3>广告管理</h3>
        <ul>
            <li><a href="{{asset('/admin_system/ad/index')}}" target="main">广告列表</a></li>
            <li><a href="{{asset('/admin_system/ad/edit')}}" target="main">添加广告</a></li>
        </ul>

        <h3>书籍管理</h3>
        <ul>
            <li><a href="{{asset('/admin_system/books/type')}}" target="main">分类列表</a></li>
            <li><a href="{{asset('/admin_system/books/index')}}" target="main">书籍列表</a></li>
        </ul>


        <h3>企业管理</h3>
        <ul>
            <li><a href="{{asset('/admin_system/company/company_list')}}" target="main">企业列表</a></li>
            <li><a href="{{asset('/admin_system/company/company_detail')}}" target="main">添加企业</a></li>
        </ul>



        <h3>会员管理</h3>
        <ul>
            <li><a href="{{asset('/admin_system/member/index')}}" target="main">会员列表</a></li>
            <li><a href="{{asset('/admin_system/member/index?registerType=2')}}" target="main">在线注册会员</a></li>
        </ul>


        <h3>海报模板管理</h3>
        <ul>
            <li><a href="/admin_system/poster/index" target="main">模板列表</a></li>
        </ul>
        <h3>分销管理</h3>
        <ul>
            <li><a href="/admin_system/memberdrp/index" target="main">合伙人列表</a></li>
            <li><a href="/admin_system/memberdrp/indexAddTwo" target="main">老分销商添加</a></li>
        </ul>




        <h3>提现管理</h3>
        <ul>
            <li><a href="/admin_system/partner/index" target="main">提现申请</a></li>
            <li><a href="/admin_system/partner/indexTwo" target="main">申请成功</a></li>
            <li><a href="/admin_system/partner/indexTree" target="main">申请失败</a></li>
        </ul>
        <h3>APP管理</h3>
        <ul>
            <li><a href="/admin_system/audioDay/index" target="main">每日一言</a></li>
            <li><a href="/admin_system/bookhots/index" target="main">热点推荐</a></li>
            <li><a href="/admin_system/mindshare/index" target="main">自学习社群列表</a></li>
            <li><a href="/admin_system/readingparty/indexTwo" target="main">读书会列表</a></li>
            <li><a href="/admin_system/system/send_publish_book_message" target="main">发送短信</a></li>
        </ul>

        <h3>管理员中心</h3>
        <ul>
            <li><a href="/admin_system/user/userList" target="main">管理员列表</a></li>
            <li><a href="/admin_system/user/editUser/0" target="main">添加管理员</a></li>
        </ul>--}}

        <h3>菜单管理</h3>
        <ul>
            <li><a href="/admin_system/menu/menu_list" target="main">菜单列表</a></li>
            <li><a href="/admin_system/menu/edit_menu_index?menuId=0" target="main">添加菜单</a></li>
        </ul>
    </div>
</div>
<div class="main">
    <iframe name="main" id="rightMain" src="{{asset('admin_system/index/welcome')}}" frameborder="no" scrolling="auto" width="100%" height="auto"
            allowtransparency="true"></iframe>
</div>

<div class="bottom">
    <div id="bottom_bg">Copyright &copy; 2006-<?php echo $time = date('Y') ?> 上海小南瓜信息技术有限公司, All Rights Reserved</div>
</div>
<div class="scroll">
    <a href="javascript:;" class="per" title="使用鼠标滚轴滚动侧栏" onclick="menuScroll(1);"></a> <a href="javascript:;"
                                                                                           class="next"
                                                                                           title="使用鼠标滚轴滚动侧栏"
                                                                                           onclick="menuScroll(2);"></a>
</div>
</body>
</html>